package club.smartdot.da.service.impl.student;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import club.smartdot.da.domain.student.Student;
import club.smartdot.da.mapper.student.StudentMapper;
import club.smartdot.da.service.student.StudentService;

@Service
public class StudentServiceImpl implements StudentService {
	
	@Autowired
	private StudentMapper studentMapper;

	@Override
	public int deleteById(Integer id) {
		return studentMapper.deleteById(id);
	}

	@Override
	public int insert(Student student) {
		return studentMapper.insert(student);
	}

	@Override
	public int insertByCondition(Student student) {
		return studentMapper.insertByCondition(student);
	}

	@Override
	public List<Student> findByCondition(Student student) {
		return studentMapper.findByCondition(student);
	}

	@Override
	public Student findById(Integer id) {
		return studentMapper.findById(id);
	}

	@Override
	public int updateByCondition(Student student) {
		return studentMapper.updateByCondition(student);
	}

	@Override
	public int update(Student student) {
		return studentMapper.update(student);
	}

	@Override
	public int deleteByCondition(Student student) {
		return studentMapper.deleteByCondition(student);
	}

	@Override
	public List<Student> findAll() {
		return studentMapper.findAll();
	}

	@Override
	public long findByCount(Student student) {
		return studentMapper.findByCount(student);
	}


}
